package com.ruoyi.oss.service;

import cn.xuyanwu.spring.file.storage.platform.FileStorage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.oss.entity.StoragePlatform;

import java.util.List;

/**
 * @author shejiangbo
 * @description 针对表【storage_platform(存储平台)】的数据库操作Service
 * @createDate 2023-05-09 16:00:28
 */
public interface StoragePlatformService extends IService<StoragePlatform> {

    public List<StoragePlatform> listEnable();

    public void init() throws ClassNotFoundException;

    public StoragePlatform findkey(String platformKey);

    public void pushNewStorage(FileStorage fileStorage);

    public void removeStorage(String platformKey, boolean removeEntity);

    public void setDefaultStorage(String platformKey);

    public String getDefaultStorage();

    public void pushNewStorage(StoragePlatform storagePlatform) throws ClassNotFoundException;
}
